﻿@model MusicHouse.Models.Usuario

<h1>Login</h1>
@using (Html.BeginForm())
{
    if (Session["usuario"] != null)
    {
    
        @Html.ValidationSummary(true)
        <fieldset>
            <label>Email: @Html.TextBoxFor(m => m.LoginEmail, new { id = "tbLoginEmail", maxlength = "50" })</label>
            <label>Senha: @Html.PasswordFor(m => m.Password, new { id = "tbPassword", maxlength = "12"})</label>
            <input type="submit" value="Entrar" name="Submit" class="button" /> @Html.ActionLink("Registre-se", "Register", "Account")
        </fieldset>
    }
    else
    {
        <p>Usuário Logado</p>        
    }
}

